package admin

import (
	"github.com/kataras/iris/v12"
	"github.com/kataras/iris/v12/hero"
	"iris_blog/controller/admin"
)

func Article(party iris.Party) {
	article := party.Party("/article")
	serve := admin.Article{}
	article.Get("/getArticleList", hero.Handler(serve.GetArticleList))

	article.Post("/addArticle", hero.Handler(serve.AddArticle))
	article.Post("/delArticle", hero.Handler(serve.DelArticle))

}
